/**
 * @Author: Bobby
 * @Date: 2022-02-15 13:14:17
 * @LastEditTime: 2022-02-28 09:35:06
 * @LastEditors: Bobby
 * @Description:
 * @FilePath: \wms-v2\tailwind.config.js
 * @CIMC-V2
 */
let margin = []
for (let i = 0; i <= 12; i++) {
  margin.push(`ml-${i}`)
  margin.push(`mr-${i}`)
  margin.push(`mt-${i}`)
  margin.push(`mb-${i}`)
}
let padding = []
for (let i = 0; i <= 12; i++) {
  padding.push(`pl-${i}`)
  padding.push(`pr-${i}`)
  padding.push(`pt-${i}`)
  padding.push(`pb-${i}`)
  padding.push(`px-${i}`)
  padding.push(`py-${i}`)
}

module.exports = {
  purge: {
    enabled: process.env.NODE_ENV == 'production' ? true : false, // 开启css精简
    content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
    safelist: [...margin],
  },
  mode: 'jit',
  darkMode: false, // or 'media' or 'class'
  theme: {
    extend: {
      width: {
        70: '17rem',
      },
      right: {
        70: '17rem',
      },
      fontSize: {
        s: '.625rem',
        xs: '.75rem',
        sm: '.875rem',
        tiny: '.875rem',
        base: '1rem',
        lg: '1.125rem',
        xl: '1.25rem',
        '2xl': '1.5rem',
        '3xl': '1.875rem',
        '4xl': '2.25rem',
        '5xl': '3rem',
        '6xl': '4rem',
        '7xl': '5rem',
      },
      borderWidth: {
        DEFAULT: '1px',
        0: '0',
        2: '2px',
        3: '3px',
        4: '4px',
        6: '6px',
        8: '8px',
      },
      zIndex: {
        1: 1,
        2: 2,
        3: 3,
        4: 4,
        5: 5,
        6: 6,
        7: 7,
        8: 8,
        9: 9,
      },
      gridTemplateColumns: {
        11: 'repeat(11, minmax(0, 1fr))',
        14: 'repeat(14, minmax(0, 1fr))',
        15: 'repeat(15, minmax(0, 1fr))',
        16: 'repeat(16, minmax(0, 1fr))',
      },
    },
  },
  variants: {
    extend: {
      display: ['group-hover'],
    },
  },
  plugins: [
    // require('@tailwindcss/forms'),
    // require('@tailwindcss/typography'),
    // require('@tailwindcss/aspect-ratio'),
    // require('@tailwindcss/line-clamp'),
  ],
}
